const http = uni.$u.http
// get请求，获取菜单，注意：get请求的配置等，都在第二个参数中，详见前面解释
// export const getMenu = (data) => http.get('/ebapi/public_api/index', data)C
// post请求，获取菜单
//分类
export const getCate = (params, config = {}) => http.post('/api/get_cate', params, config)
//banner
export const getBanner = (params, config = {}) => http.post('/api/get_banner', params, config)
//猜你喜欢
export const getLike = (params, config = {}) => http.post('/api/get_like', params, config)
//获取精选
export const getCompetitive = (params, config = {}) => http.post('/api/get_competitive', params, config)
//商品列表
export const GoodsList = (params, config = {}) => http.post('/api/get_goods_list', params, config)
//商品详情
export const getGoodsDetail = (params, config = {}) => http.post('/api/get_goods_detail', params, config)
//获取搜索列表
export const getSearchList = (params, config = {}) => http.post('/api/get_search_list', params, config)
//收藏/取消收藏
export const toggle_fav = (params, config = {}) => http.post('/api/toggle_fav', params, config)
//加入购物车
export const getCartList = (params, config = {}) => http.post('/api/get_cart_list', params, config)
//购物车数量改变
export const changeCartNum = (params, config = {}) => http.post('/api/change_cart_num', params, config)
//选中
export const toggleCheckCart = (params, config = {}) => http.post('/api/toggle_check_cart', params, config)
//移除购物车
export const removeCart = (params, config = {}) => http.post('/api/remove_cart', params, config)
//商品评论
export const getGoodsComment = (params, config = {}) => http.post('/api/get_goods_comment', params, config)
//购物车取消选中
export const getCancelCart = (params, config = {}) => http.post('/api/cancel_cart', params, config)
//购物车选中
export const getCheckCart = (params, config = {}) => http.post('/api/check_cart', params, config)


